<?php
$dbc = mysqli_connect('localhost','online_shopper','shop','online_shop')
or die('Error connecting to db');

$query = "select * from Games";
$result = mysqli_query($dbc, $query) or die('Error querying db');
while($row = mysqli_fetch_array($result)) {
  echo $row['platform'].' '.$row['name'].' '.$row['price'].' '.$row['points'].'<br />';
}
mysqli_close($dbc);


?>